from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    (r'^$','YourSchool.exams.views.home'),
    (r'^exams/$', 'YourSchool.exams.views.home'),
    (r'^exams/home', 'YourSchool.exams.views.home'),
    (r'^exams/adminHome', 'YourSchool.exams.views.adminHome'),
    (r'^exams/addExam', 'YourSchool.exams.views.addExam'),
    (r'^exams/GetExamById/(?P<id>\w{0,50})/$','YourSchool.exams.views.getExamById'),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    (r'^accounts/logout$', 'django.contrib.auth.views.logout'),
    # Examples:
    # url(r'^$', 'YourSchool.views.home', name='home'),
    # url(r'^YourSchool/', include('YourSchool.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
